package com.peng.community.service;

import com.peng.community.entity.User;
//import org.springframework.security.core.GrantedAuthority;
//
//import java.util.Collection;
import java.util.Map;

public interface UserService {
    User findUserById(int id);

    Map<String, Object> register(User user);

    Integer activate(int userId, String code);

    int updateHeader(String head, int userId);

    User findUserByUsername(String username);

//    Collection<? extends GrantedAuthority> getAuthorities(int userId);

}
